﻿using System;
using System.Collections.Generic;
using System.ServiceModel;
using System.Linq;

using Gman.Service.Implementations;
using Gman.Service.Interfaces;
using Gman.Service.Message.Resquest_Response;
using Gman.Entity.Entities;
using Gman.Business;
using AutoMapper;

namespace Gman.Service.Implementations
{
    public class GeneralService : IGeneralService
    {
        #region ubigeo

        public Response_Ubigeo ListarUbigeo(Request_Ubigeo request)
        {
            Response_Ubigeo response = new Response_Ubigeo();

            if (request.LoadOptions.Contains("list"))
            {
                UbigeoBL oUbigeorBL = new UbigeoBL();
                response.LstUbigeo = oUbigeorBL.ListarUbigeo(request.UbigeoDTO, request.state);
            }

            return response;
        }

        #endregion
    }
}
